package com.example.springboot_demo.controller;

import com.example.springboot_demo.dto.request.CurPointRequest;
import com.example.springboot_demo.utils.AjaxResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <P> @Author: SongKeCheng
 * <P> Type: Class
 * <P> Description:
 * <P> Date: 2024/6/25:19:13
 */

@SuppressWarnings({"unchecked", ""})
@RequestMapping("/baiduMap")
@RestController
public class BaiduMapController {
    private static final Logger log = LoggerFactory.getLogger(BaiduMapController.class);

    /**
     * sendCurPoint 获取前端传来的 x y
    */
    @PostMapping("/sendCurPoint")
    public AjaxResult sendCurPoint(@RequestBody CurPointRequest curPointRequest){
        log.info("获取到的经纬度：{}",curPointRequest);
        return AjaxResult.success();
    }


}
